package collection;

public class member {

	String id;
	String pwd;
	
	public member(String id, String pwd){
		this.id = id;
		this.pwd= pwd;
		
}
	public String getId(){
		return id;
		}
	public String getPwd(){
		return pwd;
		}
	
	public boolean equals(Object obj){
		member m=(member)obj;
		if(id.equals(m.getId()) && pwd.equals(m.getPwd())){
			return true;
		}else{
				return false;
		}
	}
	public int hashCode(){
		return (id+pwd).hashCode();
		
	}
}